/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/login',
    component: () => import('@/views/login/login'),
    meta: { title: '登录',  },
  },
  {
    path: '/register',
    component: () => import('@/views/login/register'),
    meta: { title: '注册',  },
  },
  {
    path: '/updatepwd',
    component: () => import('@/views/login/updatepwd'),
    meta: { title: '修改密码',  },
  },
  {
    path: '/userinfo',
    name:"userinfo",
    component: () => import('@/views/login/userinfo'),
    meta: { title: '完善个人信息',  },
  },
  {
    path: '/bootpage',
    name:"bootpage",
    component: () => import('@/views/login/bootpage'),
    meta: { title: '引导页',  },
  },
  // {
  //   path: '/home',
  //   name: 'Home',
  //   component: () => import('@/views/home/index'),
  //   meta: { title: '首页', keepAlive: false }
  // },
  {
    path: '/',
    component: () => import('@/views/layouts/index'),
    redirect: '/home',
    meta: { title: '首页', keepAlive: false  },
    children: [{
      path: '/home',
      name: 'Home',
      component: () => import('@/views/home/index'),
      meta: { title: '首页', keepAlive: false }
    },{
      path: '/useredit',
      name: 'Useredit',
      component: () => import('@/views/login/userinfo'),
      meta: { title: '查看个人信息', keepAlive: false }
    },
    {
      path: '/activeadd',
      name: 'ActiveAdd',
      component: () => import('@/views/active/index'),
      meta: { title: '活动收集', keepAlive: false }
    },
    {
      path: '/orderlist',
      name: 'OrderList',
      component: () => import('@/views/active/list'),
      meta: { title: '订单处理', keepAlive: false }
    },{
      path: '/activedetail',
      name: 'ActiveDetail',
      component: () => import('@/views/active/activeDetail'),
      meta: { title: '活动详情', keepAlive: false }
    },{
      path: '/txdetail',
      name: 'TxDetail',
      component: () => import('@/views/active/txDetail'),
      meta: { title: '提现详情', keepAlive: false }
    },
    {
      path: '/rulepage',
      name: 'RulePage',
      component: () => import('@/views/home/rule'),
      meta: { title: '活动规则', keepAlive: false }
    },]
  }
  // {
  //   path: '/',
  //   component: () => import('@/views/layouts/index'),
  //   redirect: '/home',
  //   meta: {
  //     title: '首页',
  //     keepAlive: false
  //   },
  //   children: [
  //     {
  //       path: '/home',
  //       name: 'Home',
  //       component: () => import('@/views/home/index'),
  //       meta: { title: '首页', keepAlive: false }
  //     },
  //     {
  //       path: '/about',
  //       name: 'About',
  //       component: () => import('@/views/home/about'),
  //       meta: { title: '关于我', keepAlive: false }
  //     }
  //   ]
  // }
]
